package org.idtem.UI;
import java.util.Collection;

import javax.swing.JFrame;
import javax.swing.UIManager;

import org.idtem.UI.dataTypes.TokenExtendidoUI;


public class IdTemWindowsManager {
	
	static boolean useSystemLookAndFeel = true;
	
	public static Collection<TokenExtendidoUI> SeneseDesambiguationWindow(Collection<TokenExtendidoUI> tokensExt)
	{
		if (useSystemLookAndFeel) {
            try {
                UIManager.setLookAndFeel(
                    UIManager.getSystemLookAndFeelClassName());
            } catch (Exception e) {
                System.err.println("Couldn't use system look and feel.");
            }
        }

        //Create and set up the window.
        JFrame frame = new JFrame("SenseDesambiguation");
    
        //Add content to the window.
        SenseDesambiguationModalWindow sdw = new SenseDesambiguationModalWindow(frame, tokensExt);
        sdw.setModal(true);
        sdw.setVisible(true);
        return sdw.getOrderedTokensExtendidos();
		
	}

}
